package cm.utils;

import java.util.Random;

public class RamdomUtil {

    public static String getFixLengthString(int strLength){
        Random random = new Random();
        double pross = (1+random.nextDouble()) * Math.pow(10,strLength);
        String fixLength = String.valueOf(pross);
        return fixLength.substring(1,strLength+1);
    }

    public static void main(String[] args) {
        System.err.println(getFixLengthString(6));
    }

}
